package com.example.tbplus14.Test;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Prod {
    private String prodName;
    private Integer prodCount;
    private BigDecimal prodPrice;

    public void sumProdPrice(Integer prodCount, BigDecimal prodPrice){
        System.out.printf("prod价格和为: %s%n", prodPrice.multiply(new BigDecimal(prodCount.toString())));
    }

    public void sumProdPrice(){
        System.out.println("这是无参方法");
    }
}
